home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / MacZoop 1.6.5 / Projects / Demo Project / Show Off Classes / ZUndoIPTask.h < prev   
Encoding:
C/C++ Source or Header  |  1997-02-26  |  889 b   |  55 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************************
  2. *
  3. *
  4. *            ObjectMacZapp        -- a standard Mac OOP application template
  5. *
  6. *
  7. *
  8. *            ZUndoIPTask.h        -- an undo task for Image Processing ops in GWorld windows
  9. *
  10. *                                    (provided as an example of how to use it)
  11. *
  12. *
  13. *
  14. *            © 1996, Graham Cox
  15. *
  16. *
  17. *
  18. *
  19. *************************************************************************************************/
  20.  
  21.  
  22. #pragma once
  23.  
  24. #ifndef __ZUNDOIPTASK__
  25. #define __ZUNDOIPTASK__
  26.  
  27. #ifndef __ZUNDOTASK__
  28. #include    "ZUndoTask.h"
  29. #endif
  30.  
  31.  
  32. class    ZUndoIPTask : public ZUndoTask
  33. {
  34. protected:
  35.     short    taskCode;
  36.  
  37. public:
  38.     ZUndoIPTask( Str63 taskName, ZWindow* aWindow, short ipTaskID );
  39.     
  40.     virtual void    Do();
  41.     virtual void    Undo();
  42. };
  43.  
  44.  
  45. // task codes (this task can handle more than one operation if you want)
  46.  
  47. enum
  48. {
  49.     undoInvert = 1
  50. };
  51.  
  52.  
  53. #define        kIPTasksStrResID    129    
  54.  
  55. #endif